<?php

declare(strict_types=1);
/**
 * This file is part of habo_new_media.
 *
 * @link     https://www.berlen.cn/
 * @contact  tech@berlen.cn
 * @license  http://gitlab.rehou.cn/habo/habo_new_media/-/blob/master/README.md
 */
namespace app\enum;

class KuaiShouUrlEnum extends UrlEnum
{
    /**
     * @var array|string[] 财务服务链接列表
     */
    public const FINANCE_URL = [
        // 获取广告账户流水信息
        'advertiser_daily_stat' => '/rest/openapi/v1/advertiser/fund/daily_flows',
        // 获取广告账户报表信息
        'advertiser_report' => '/rest/openapi/v1/report/account_report',
    ];

    /**
     * @var array|string[] 素材服务链接列表
     */
    public const MATERIAL_URL = [
        // 获取素材流水信息
        'material_report' => '/rest/openapi/v1/report/material_report',
        // 上传视频素材
        'video_upload' => '/rest/openapi/v2/file/ad/video/upload',
        // 获取图片素材
        'pic_list' => '/rest/openapi/v1/file/ad/image/list',
        // 获取视频素材
        'video_list' => '/rest/openapi/v1/file/ad/video/list',
        // 获取可选的推荐封面
        'video_key_frame' => '/rest/openapi/v1/tool/key_frame',
        // 视频关联创意数查询
        'video_creative_num' => '/rest/openapi/v1/file/ad/video/relate/creatives',
    ];

    /**
     * @var array|string[] 账户服务链接列表
     */
    public const ADVERTISER_URL = [
        // 刷新token
        'refresh_token' => '/rest/openapi/oauth2/authorize/refresh_token',
        // 获取广告账户信息
        'advertiser_info' => '/rest/openapi/v1/advertiser/info',
        // 智能托管创建
        'project_create' => '/rest/openapi/gw/dsp/v1/hosting/project/create',
        // 获取智能托管
        'project_list' => '/rest/openapi/gw/dsp/v1/hosting/project/material/list',
        // 智能托管修改
        'project_update' => '/rest/openapi/gw/dsp/v1/hosting/project/update',
        // 智能托管详情
        'project_detail' => '/rest/openapi/gw/dsp/v1/hosting/project/detail',
        // 【应用中心】获取应用列表
        'app_list' => '/rest/openapi/gw/dsp/appcenter/app/list',
        // 获取定向模板
        'target_template_list' => '/rest/openapi/gw/dsp/target/template/details',
        // 获取广告计划
        'campaign_list' => '/rest/openapi/gw/dsp/campaign/list',
        // 获取行动号召
        'action_list' => '/rest/openapi/v1/creative/action_bar_text/list',
        // 获取创意分类标签白名单客户
        'creative_category_label_white' => '/rest/openapi/v1/advertiser/white_list',
        // 获取创意分类查询接口
        'creative_category_label' => '/rest/openapi/v1/creative/creative_category/list',
        // 创意标签填写建议
        'creative_tag' => '/rest/openapi/v1/creative/creative_tag/advise',
        // 获取可选的动态词包
        'creative_word' => '/rest/openapi/v1/tool/creative_word/list',
        // 获取试玩列表
        'playable_list' => '/rest/openapi/gw/dsp/v1/playable/list',
        // 获取试玩按钮列表
        'playable_buttons' => '/rest/openapi/gw/dsp/v1/playable/play_buttons',
        // 获取可选的浅度优化目标
        'ocpx_conversion_ocpx_types' => '/rest/openapi/gw/dsp/v1/ocpx/ocpxTypes',
        // 获取可选的深度优化目标
        'ocpx_conversion_deep_types' => '/rest/openapi/gw/dsp/v1/ocpx/deepTypes',
        // 获取高级创意列表
        'adv_card' => '/rest/openapi/v1/asset/adv_card/list',
        // 查询智能化创编广告组
        'unit_list' => '/rest/openapi/gw/dsp/unit/list',
        // 修改智能化创编广告组
        'unit_update' => '/rest/openapi/gw/dsp/unit/update',
        // 创建广告计划
        'campaign_create' => '/rest/openapi/gw/dsp/campaign/create',
        // 修改广告计划状态
        'campaign_status' => '/rest/openapi/v1/campaign/update/status',
        // 创建广告组
        'unit_create' => '/rest/openapi/gw/dsp/unit/create',
        // 创建自定义广告创意
        'creative_create' => '/rest/openapi/gw/dsp/creative/create',
        // 创建程序化广告创意
        'program_creative_create' => '/rest/openapi/gw/dsp/advanced_creative/create',
        // 获取广告主数据
        'account_report' => '/rest/openapi/v1/report/account_report',
        // 获取广告计划数据
        'campaign_report' => '/rest/openapi/v1/report/campaign_report',
        // 获取广告组数据
        'unit_report' => '/rest/openapi/v1/report/unit_report',
        // 获取新版分包发布列表
        'app_subPackage' => '/rest/openapi/gw/dsp/appcenter/subPackage/release/list',
        // 获取快手号授权列表
        'native_auth' => '/rest/openapi/gw/dsp/v1/native/auth/list',
        'native_video' => '/rest/openapi/gw/dsp/v1/native/photo/list',
        // 获取魔力建站落地页信息
        'lp_page' => '/rest/openapi/v2/lp/page/list',
        // 获取商品库列表
        'library_list' => '/rest/openapi/gw/dsp/dpa/library/list',
        // 获取商品列表
        'product_list' => '/rest/openapi/gw/dsp/v1/dpa/product/list',
    ];

    /**
     * @var array|string[] TOKEN服务链接列表
     */
    public const TOKEN_URL = [
        'refresh_token' => '/rest/openapi/oauth2/authorize/refresh_token', // 刷新token
        'advertiser_info' => '/rest/openapi/v1/advertiser/info', // 获取广告账户信息
    ];

    public static string $financeName = 'KS_FINANCE_BASE_URL';

    public static string $serviceName = 'KS_BASE_URL';

    public const DSP_URL = [
        'pic_share' => '/rest/openapi/gw/dsp/v1/pic/share', // 图片库推送
    ];
}
